﻿using BankCardVerify_Design;
using System;
using System.Runtime.Remoting.Messaging;
using static Program;

class Program
{
    static void Main(string[] args)
    {
        try
        {
            string cardNo = "123456789";
            string customerNm = "";
    
            var validator = new BankCardValidator(new ThirdPartyCardValidationService_A());
            validator.CheckCardValidityBasic(cardNo, customerNm);
            Console.ReadLine();
        }
        catch (ArgumentException ex)
        {
            Console.WriteLine($"输入参数错误: {ex.Message}");
        }
        catch (Exception ex)
        {
            Console.WriteLine($"发生未知错误: {ex.Message}");
        }
    }
}







